package online.sixfish.common.controller;


import online.sixfish.common.api.ApiResult;
import online.sixfish.common.pojo.Message;
import online.sixfish.common.pojo.State;
import online.sixfish.common.utils.SystemInfoUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.net.UnknownHostException;


@RestController
@Slf4j
public class SystemInfoController {
    @GetMapping("/getSysInfo")
    public Object getSysInfo() throws UnknownHostException {
        return ApiResult.success(SystemInfoUtils.getInfo());
    }



}
